﻿<html>
	<head>
		<title>Task 42</title>
	
	<style>

.highlight1 td
{
	background-color:#000;
    color: #fff
}
.highlight2 td
{
	background-color:#f00;
    color: #fff
}
	</style>
	    <script >
      
	        document.write("<table border=1 CELLSPACING=1 CELLPADDING=2 >");
	        var i, j; for (i = 0; i <= 4990; i++) {
	            document.write("<tr 	onmouseover=this.className='highlight1' onmouseout=this.className=''>");
	           
	            this.className = 'highlight';
	            for (j = 0; j < 2; j++)
	                
	                document.write("<TD>" + "Hello.I'am Text" + "</TD>");

	            document.write("</TR>");
            }
	        for (i = 4990; i <= 10000; i++) {
	            document.write("<tr 	onmouseover=this.className='highlight2' onmouseout=this.className=''>");

	            this.className = 'highlight';
	            for (j = 0; j < 2; j++)

	                document.write("<TD>" + "ME IS CRAZY" + "</TD>");

	            document.write("</TR>");
	        }
        </script>

	</head >
<body >
   
	
        
</body>
</html>